1 static struct buffer_head *raid5_build_block (struct stripe_head *sh, int i)
3 raid5_conf_t *conf = sh->raid_conf;
4 struct buffer_head *bh = sh->bh_cache[i];
5 unsigned long block = sh->sector / (sh->size >> 9);
7 init_buffer(bh, raid5_end_read_request, sh);
8 bh->b_dev = conf->disks[i].dev;
11 bh->b_state = (1 << BH_Req) | (1 << BH_Mapped);
12 bh->b_size = sh->size;
13 bh->b_list = BUF_LOCKED;